Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Refactored, Tightly Packed, and Getter Functionalities#3

Open
Hendobox wants to merge 2 commits intocapofficial:mainfrom
Hendobox:main
Open

Refactored, Tightly Packed, and Getter Functionalities#3
Hendobox wants to merge 2 commits intocapofficial:mainfrom
Hendobox:main

Conversation

@Hendobox
Copy link

I added a new method in the Store.sol file named collectTreasuryFee. This method will enable the gov address to collect available fees in the base cryptocurrency. After this happens, the fee balance in the contract gets updated.

I added a new method in the Store.sol file named collectTreasuryFee. This method will enable the gov address to collect available fees in the base cryptocurrency. After this happens, the fee balance in the contract gets updated.
@kappacappa
Copy link
Contributor

@Hendobox thanks, but a direct payment is requested here, without need for the treasury to manually collect the accrued fees. They can be paid out directly to the treasury address as they come in.

@Hendobox
Copy link
Author

@Hendobox thanks, but a direct payment is requested here, without need for the treasury to manually collect the accrued fees. They can be paid out directly to the treasury address as they come in.

Okay, got it. Will review as such 👍🏻

rearranged the state variables in the  Store.sol file to optimize storage. Secondly, created IStore, ITrade, ICLP, and IPool interfaces to eliminate redundancy in the codebase, thus optimizing our storage. Thirdly, since the contracts now import interfaces, I added getter functions for state variables in the Store.sol file for accessibility getPoolBalance, getPoolWithdrawalFee, getPoolLastPaid, getBufferBalance, getBufferPayoutPeriod, getPoolFeeShare, getKeeperFeeShare, getMinimumMarginLevel, and getFundingInterval. Fourthly, since the treasury fee will be sent out to the treasury wallet address on the go, I decided to set the value for the treasury wallet during deployment because we do not want a case where fees are sent to the Lastly, updated the README file. I discovered that MAX_FEE was already set in the contract. I also ticked the treasury fees and refactoring tasks.
@Hendobox Hendobox changed the title Done treasury fee todo Refactored, Tightly Packed, and Getter Functionalities Dec 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants